
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>页面开发 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="ROUTE.html" />
    
    
    <link rel="prev" href="MENU.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="START.html">
            
                <a href="START.html">
            
                    
                    快速开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="MENU.html">
            
                <a href="MENU.html">
            
                    
                    菜单配置
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4" data-path="PAGE.html">
            
                <a href="PAGE.html">
            
                    
                    页面开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="ROUTE.html">
            
                <a href="ROUTE.html">
            
                    
                    系统路由
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="AJAX.html">
            
                <a href="AJAX.html">
            
                    
                    Ajax请求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="MOCK.html">
            
                <a href="MOCK.html">
            
                    
                    Mock模拟数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="STYLE.html">
            
                <a href="STYLE.html">
            
                    
                    样式&主题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="LAYOUT.html">
            
                <a href="LAYOUT.html">
            
                    
                    导航布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="MODEL.html">
            
                <a href="MODEL.html">
            
                    
                    Model(Redux)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="I18N.html">
            
                <a href="I18N.html">
            
                    
                    国际化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="PERMISSION.html">
            
                <a href="PERMISSION.html">
            
                    
                    权限控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="NGINX.html">
            
                <a href="NGINX.html">
            
                    
                    Nginx配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="PROXY.html">
            
                <a href="PROXY.html">
            
                    
                    开发代理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="OTHER.html">
            
                <a href="OTHER.html">
            
                    
                    其他
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >页面开发</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x9875;&#x9762;&#x5F00;&#x53D1;">&#x9875;&#x9762;&#x5F00;&#x53D1;</h1>
<p>&#x6307;&#x7684;&#x662F;&#x8DEF;&#x7531;&#x5BF9;&#x5E94;&#x7684;&#x9875;&#x9762;&#x7EC4;&#x4EF6;&#x3002;&#x4E1A;&#x52A1;&#x5F00;&#x53D1;&#x63A5;&#x89E6;&#x6700;&#x591A;&#x7684;&#x5C31;&#x662F;&#x9875;&#x9762;&#xFF0C;&#x901A;&#x8FC7;&#x4E00;&#x4E9B;&#x5C01;&#x88C5;&#xFF0C;&#x7B80;&#x5316;&#x5F00;&#x53D1;&#x3002;</p>
<h2 id="&#x914D;&#x7F6E;&#x9AD8;&#x9636;&#x7EC4;&#x4EF6;">&#x914D;&#x7F6E;&#x9AD8;&#x9636;&#x7EC4;&#x4EF6;</h2>
<p>&#x5C06;&#x7EC4;&#x4EF6;&#x6240;&#x9700;&#x8981;&#x7684;&#x4E00;&#x4E9B;&#x529F;&#x80FD;&#xFF0C;&#x901A;&#x8FC7;&#x914D;&#x7F6E;&#x88C5;&#x9970;&#x5668;&#x7684;&#x65B9;&#x5F0F;&#x5B9E;&#x73B0;&#xFF0C;&#x7528;&#x6CD5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-jsx"><span class="hljs-keyword">import</span> React, {Component} <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;react&apos;</span>;
<span class="hljs-keyword">import</span> config <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;@/commons/config-hoc&apos;</span>;

@config({
    path: <span class="hljs-string">&apos;/page/path&apos;</span>,
    title: <span class="hljs-string">&apos;&#x9875;&#x9762;title&apos;</span>,
    ajax: <span class="hljs-literal">true</span>,
    ...
})
<span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">SomePage</span> <span class="hljs-title">extend</span> <span class="hljs-title">Component</span> </span>{
    componentDidMount() {
        <span class="hljs-keyword">this</span>.props.ajax
            .get(...)
            .then(...)
    }
    ...
}
</code></pre>
<p>&#x6240;&#x6709;&#x53C2;&#x6570;&#x5982;&#x4E0B;&#xFF1A;</p>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x9ED8;&#x8BA4;&#x503C;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>path</td>
<td>string</td>
<td>-</td>
<td>&#x9875;&#x9762;&#x8DEF;&#x7531;&#x5730;&#x5740;&#xFF0C;&#x5982;&#x679C;&#x5B58;&#x5728;path&#x914D;&#x7F6E;&#xFF0C;&#x4F1A;&#x901A;&#x8FC7;&#x811A;&#x672C;&#x6293;&#x53D6;&#xFF0C;&#x5F53;&#x524D;&#x7EC4;&#x4EF6;&#x5C06;&#x4F1A;&#x4F5C;&#x4E3A;&#x8DEF;&#x7531;&#x9875;&#x9762;&#xFF0C;path&#x5C06;&#x4F5C;&#x4E3A;&#x8DEF;&#x7531;&#x5730;&#x5740; </td>
</tr>
<tr>
<td>noFrame</td>
<td>boolean</td>
<td>false</td>
<td>&#x6807;&#x8BB0;&#x5F53;&#x524D;&#x9875;&#x9762;&#x4E3A;&#x4E0D;&#x9700;&#x8981;&#x5BFC;&#x822A;&#x6846;&#x67B6;&#x7684;&#x9875;&#x9762;&#xFF0C;&#x6BD4;&#x5982;&#x767B;&#x5F55;&#x9875;&#xFF0C;&#x901A;&#x8FC7;&#x811A;&#x672C;&#x6293;&#x53D6;&#x5B9E;&#x73B0;</td>
</tr>
<tr>
<td>noAuth</td>
<td>boolean</td>
<td>false</td>
<td>&#x6807;&#x8BB0;&#x5F53;&#x524D;&#x9875;&#x9762;&#x4E3A;&#x4E0D;&#x9700;&#x8981;&#x767B;&#x5F55;&#x5373;&#x53EF;&#x8BBF;&#x95EE;&#x7684;&#x9875;&#x9762;&#xFF0C;&#x901A;&#x8FC7;&#x811A;&#x672C;&#x6293;&#x53D6;&#x5B9E;&#x73B0;</td>
</tr>
<tr>
<td>keepAlive</td>
<td>boolean</td>
<td>-</td>
<td>&#x6807;&#x8BB0;&#x5F53;&#x524D;&#x9875;&#x9762;&#x5185;&#x5BB9;&#x5728;&#x9875;&#x9762;&#x5207;&#x6362;&#x4E4B;&#x540E;&#x662F;&#x5426;&#x4FDD;&#x6301;</td>
</tr>
<tr>
<td>title</td>
<td>boolean &#x6216; string &#x6216; ReactNode &#x6216; object &#x6216; function(props)</td>
<td>true</td>
<td>true&#xFF1A;&#x5F53;&#x524D;&#x9875;&#x9762;&#x663E;&#x793A;&#x901A;&#x8FC7;&#x83DC;&#x5355;&#x7ED3;&#x6784;&#x81EA;&#x52A8;&#x751F;&#x6210;&#x7684;title&#xFF1B;false&#xFF1A;&#x5F53;&#x524D;&#x9875;&#x9762;&#x4E0D;&#x663E;&#x793A;title&#xFF1B;string&#xFF1A;&#x81EA;&#x5B9A;&#x4E49;title&#xFF0C;&#x5E76;&#x4E0D;&#x53C2;&#x4E0E;&#x56FD;&#x9645;&#x5316;&#xFF1B;object&#xFF1A;{local, text}&#xFF0C;local&#x5BF9;&#x5E94;&#x56FD;&#x9645;&#x5316;menu&#x4E2D;&#x7684;&#x914D;&#x7F6E;&#xFF0C;text&#x4E3A;&#x56FD;&#x9645;&#x5316;&#x5931;&#x8D25;&#x4E4B;&#x540E;&#x7684;&#x9ED8;&#x8BA4;&#x663E;&#x793A;&#xFF1B;function(props): &#x8FD4;&#x56DE;&#x503C;&#x4F5C;&#x4E3A;title</td>
</tr>
<tr>
<td>breadcrumbs</td>
<td>boolean &#x6216; array &#x6216; function(props)</td>
<td>true</td>
<td>true&#xFF1A;&#x5F53;&#x524D;&#x9875;&#x9762;&#x663E;&#x793A;&#x901A;&#x8FC7;&#x83DC;&#x5355;&#x7ED3;&#x6784;&#x81EA;&#x52A8;&#x751F;&#x6210;&#x7684;&#x9762;&#x5305;&#x5C51;&#xFF1B;false&#xFF1A;&#x5F53;&#x524D;&#x9875;&#x9762;&#x4E0D;&#x663E;&#x793A;&#x9762;&#x5305;&#x5C51;&#xFF1B;object&#xFF1A;[{local, text, ...}]&#xFF0C;local&#x5BF9;&#x5E94;&#x56FD;&#x9645;&#x5316;menu&#x4E2D;&#x7684;&#x914D;&#x7F6E;&#xFF0C;text&#x4E3A;&#x56FD;&#x9645;&#x5316;&#x5931;&#x8D25;&#x4E4B;&#x540E;&#x7684;&#x9ED8;&#x8BA4;&#x663E;&#x793A;&#xFF1B;function(props): &#x8FD4;&#x56DE;&#x503C;&#x4F5C;&#x4E3A;&#x9762;&#x5305;&#x5C51;</td>
</tr>
<tr>
<td>appendBreadcrumbs</td>
<td>array &#x6216; function(props)</td>
<td>[]</td>
<td>&#x5728;&#x5F53;&#x524D;&#x9762;&#x5305;&#x5C51;&#x57FA;&#x7840;&#x4E0A;&#x6DFB;&#x52A0;&#xFF1B;function(props): &#x8FD4;&#x56DE;&#x503C;&#x4F5C;&#x4E3A;&#x65B0;&#x6DFB;&#x52A0;&#x7684;&#x9762;&#x5305;&#x5C51;</td>
</tr>
<tr>
<td>pageHead</td>
<td>boolean</td>
<td>-</td>
<td>&#x9875;&#x9762;&#x5934;&#x90E8;&#x662F;&#x5426;&#x663E;&#x793A;</td>
</tr>
<tr>
<td>side</td>
<td>boolean</td>
<td>-</td>
<td>&#x9875;&#x9762;&#x5DE6;&#x4FA7;&#x662F;&#x5426;&#x663E;&#x793A;</td>
</tr>
<tr>
<td>sideCollapsed</td>
<td>boolean</td>
<td>-</td>
<td>&#x5DE6;&#x4FA7;&#x662F;&#x5426;&#x6536;&#x8D77;</td>
</tr>
<tr>
<td>ajax</td>
<td>boolean</td>
<td>false</td>
<td>&#x662F;&#x5426;&#x6DFB;&#x52A0;ajax&#x9AD8;&#x9636;&#x7EC4;&#x4EF6;&#xFF0C;&#x5185;&#x90E8;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;this.props.ajax&#x4F7F;&#x7528;ajax API&#xFF0C;&#x7EC4;&#x4EF6;&#x5378;&#x8F7D;&#x65F6;&#xFF0C;&#x4F1A;&#x81EA;&#x52A8;&#x6253;&#x65AD;&#x672A;&#x5B8C;&#x6210;&#x7684;&#x8BF7;&#x6C42;</td>
</tr>
<tr>
<td>router</td>
<td>boolean</td>
<td>false</td>
<td>&#x662F;&#x5426;&#x6DFB;&#x52A0;withRouter&#x88C5;&#x9970;&#x5668;&#xFF0C;&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x4E86;path&#xFF0C;&#x5C06;&#x81EA;&#x52A8;&#x4F7F;&#x7528;&#x4E86;withRouter&#xFF0C;&#x7EC4;&#x4EF6;&#x5185;&#x90E8;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;this.props.history&#x7B49;API</td>
</tr>
<tr>
<td>query</td>
<td>boolean</td>
<td>false</td>
<td>&#x662F;&#x5426;&#x6DFB;&#x52A0;&#x5730;&#x5740;&#x67E5;&#x8BE2;&#x5B57;&#x7B26;&#x4E32;&#x8F6C;&#x6362;&#x9AD8;&#x9636;&#x7EC4;&#x4EF6;&#xFF0C;&#x5185;&#x90E8;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;this.props.query&#x8BBF;&#x95EE;&#x67E5;&#x8BE2;&#x5B57;&#x7B26;&#x4E32;</td>
</tr>
<tr>
<td>connect</td>
<td>boolean &#x6216; function(state)</td>
<td>false</td>
<td>&#x662F;&#x5426;&#x4E0E;redux&#x8FDB;&#x884C;&#x8FDE;&#x63A5;&#xFF0C;true&#xFF1A;&#x53EA;&#x6CE8;&#x5165;&#x4E86;this.props.action&#x76F8;&#x5173;&#x65B9;&#x6CD5;&#xFF1B;false&#xFF1A;&#x4E0D;&#x4E0E;redux&#x8FDB;&#x884C;&#x8FDE;&#x63A5;&#xFF1B;(state) =&gt; ({title: state.page.title})&#xFF1A;&#x5C06;&#x51FD;&#x6570;&#x8FD4;&#x56DE;&#x7684;&#x6570;&#x636E;&#x6CE8;&#x5165;this.props</td>
</tr>
<tr>
<td>event</td>
<td>boolean</td>
<td>false</td>
<td>&#x662F;&#x5426;&#x6DFB;&#x52A0;event&#x9AD8;&#x9636;&#x7EC4;&#x4EF6;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;this.props.addEventListener&#x6DFB;&#x52A0;dom&#x4E8B;&#x4EF6;&#xFF0C;&#x5E76;&#x5728;&#x7EC4;&#x4EF6;&#x5378;&#x8F7D;&#x65F6;&#x4F1A;&#x81EA;&#x52A8;&#x6E05;&#x7406;&#xFF1B;&#x901A;&#x8FC7;this.props.removeEventListener&#x79FB;&#x51FA;dom&#x4E8B;&#x4EF6;</td>
</tr>
<tr>
<td>pubSub</td>
<td>boolean</td>
<td>false</td>
<td>&#x662F;&#x5426;&#x6DFB;&#x52A0;&#x53D1;&#x5E03;&#x8BA2;&#x9605;&#x9AD8;&#x9636;&#x7EC4;&#x4EF6;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;this.props.subscribe(topic, (msg, data) =&gt; {...})&#x8BA2;&#x9605;&#x4E8B;&#x4EF6;&#xFF0C;&#x5E76;&#x5728;&#x7EC4;&#x4EF6;&#x5378;&#x8F7D;&#x65F6;&#xFF0C;&#x4F1A;&#x81EA;&#x52A8;&#x53D6;&#x6D88;&#x8BA2;&#x9605;; &#x901A;&#x8FC7;this.props.publish(topic, data)&#x53D1;&#x5E03;&#x4E8B;&#x4EF6;</td>
</tr>
</tbody>
</table>
<p>&#x6CE8;&#xFF1A;</p>
<ul>
<li><code>noFrame</code>&#x3001;<code>noAuth</code>&#x3001;<code>keepAlive</code> &#x53EA;&#x6709;&#x914D;&#x7F6E;&#x4E86;<code>path</code>&#x624D;&#x6709;&#x6548;&#xFF01;</li>
<li>config&#x88C5;&#x9970;&#x5668;&#x53EF;&#x4EE5;&#x7528;&#x4E8E;&#x4EFB;&#x4F55;&#x7EC4;&#x4EF6;&#xFF0C;&#x4F46;&#x662F;<code>title</code>&#x3001;<code>breadcrumbs</code>&#x3001;<code>appendBreadcrumbs</code>&#x3001;<code>pageHead</code>&#x3001;<code>side</code>&#x3001;<code>sideCollapsed</code>&#x6700;&#x597D;&#x5728;&#x8DEF;&#x7531;&#x5BF9;&#x5E94;&#x7684;&#x9875;&#x9762;&#x7EC4;&#x4EF6;&#x4E2D;&#x4F7F;&#x7528;</li>
</ul>
<h2 id="&#x9875;&#x9762;&#x4FDD;&#x6301;">&#x9875;&#x9762;&#x4FDD;&#x6301;</h2>
<p>&#x9875;&#x9762;&#x6E32;&#x67D3;&#x4E00;&#x6B21;&#x4E4B;&#x540E;&#x4F1A;&#x4FDD;&#x6301;&#x72B6;&#x6001;&#xFF0C;&#x518D;&#x6B21;&#x8DF3;&#x8F6C;&#x5230;&#x6B64;&#x9875;&#x9762;&#x4E0D;&#x4F1A;&#x91CD;&#x65B0;&#x521B;&#x5EFA;&#x6216;&#x91CD;&#x65B0;&#x6E32;&#x67D3;&#x3002;</p>
<h3 id="&#x5F00;&#x542F;&#x65B9;&#x5F0F;">&#x5F00;&#x542F;&#x65B9;&#x5F0F;</h3>
<ol>
<li>&#x9875;&#x9762;&#x6709;&#x4E0A;&#x89D2; -&gt; &#x7528;&#x6237;&#x5934;&#x50CF; -&gt; &#x8BBE;&#x7F6E; -&gt; &#x9875;&#x9762;&#x8BBE;&#x7F6E; -&gt; &#x4FDD;&#x6301;&#x9875;&#x9762;&#x72B6;&#x6001;</li>
<li>/src/models/system.js initState.keepPage &#x5C5E;&#x6027;&#x4FEE;&#x6539;&#x9ED8;&#x8BA4;&#x503C;</li>
<li>config&#x88C5;&#x9970;&#x5668; keepAlive&#x5C5E;&#x6027;</li>
</ol>
<h3 id="&#x9875;&#x9762;&#x663E;&#x793A;&#x9690;&#x85CF;&#x4E8B;&#x4EF6;">&#x9875;&#x9762;&#x663E;&#x793A;/&#x9690;&#x85CF;&#x4E8B;&#x4EF6;</h3>
<p><code>config</code> &#x88C5;&#x9970;&#x5668;&#x4E3A;&#x7EC4;&#x4EF6;&#x6CE8;&#x5165;&#x4E86;&#x4E24;&#x4E2A;&#x4E8B;&#x4EF6; <code>onComponentWillShow</code>&#x3001;<code>onComponentWillHide</code> &#xFF0C;&#x5982;&#x679C;&#x9875;&#x9762;&#x4F7F;&#x7528;&#x4E86; Keep Alive&#x529F;&#x80FD;&#xFF0C;&#x5207;&#x6362;&#x663E;&#x793A;/&#x9690;&#x85CF;&#x65F6;&#x4F1A;&#x89E6;&#x53D1;</p>
<pre><code class="lang-js">@config({
    ...
})
<span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">SomePage</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">React</span>.<span class="hljs-title">Component</span> </span>{
    <span class="hljs-keyword">constructor</span>(...props) {
        <span class="hljs-keyword">super</span>(...props);

        <span class="hljs-keyword">this</span>.props.onComponentWillShow(() =&gt; {
            <span class="hljs-comment">// do some thing </span>
        });

        <span class="hljs-keyword">this</span>.props.onComponentWillHide(() =&gt; {
            <span class="hljs-comment">// do some thing </span>
        });
    }
    ...
}
</code></pre>
<h2 id="&#x9875;&#x9762;&#x5BB9;&#x5668;pagecontent">&#x9875;&#x9762;&#x5BB9;&#x5668;PageContent</h2>
<p>&#x7CFB;&#x7EDF;&#x63D0;&#x4F9B;&#x4E86;&#x9875;&#x9762;&#x7684;&#x8DDF;&#x8282;&#x70B9;PageContent&#xFF0C;&#x6709;&#x5982;&#x4E0B;&#x7279;&#x6027;&#xFF1A;</p>
<ul>
<li>&#x6DFB;&#x52A0;&#x4E86;margin padding &#x6837;&#x5F0F;&#xFF1B;</li>
<li>&#x6DFB;&#x52A0;&#x4E86;footer&#xFF1B;</li>
<li>&#x652F;&#x6301;&#x9875;&#x9762;loading&#xFF1B;</li>
<li>&#x81EA;&#x52A8;&#x5224;&#x5B9A;&#x662F;&#x5426;&#x6709;&#x5E95;&#x90E8;&#x5DE5;&#x5177;&#x6761;FixBottom&#x7EC4;&#x4EF6;&#xFF0C;&#x4E3A;&#x5E95;&#x90E8;&#x5DE5;&#x5177;&#x6761;&#x817E;&#x51FA;&#x7A7A;&#x95F4;&#xFF1B;</li>
</ul>
<p>&#x662F;&#x5426;&#x663E;&#x793A;footer&#xFF0C;&#x9ED8;&#x8BA4;true</p>
<pre><code class="lang-js">&lt;PageContent footer={false}&gt;
    ...
&lt;/PageContent&gt;
</code></pre>
<p>&#x663E;&#x793A;loading&#xFF0C;&#x6709;&#x4E24;&#x79CD;&#x65B9;&#x5F0F;&#x3002;</p>
<ol>
<li>model&#x65B9;&#x5F0F;<pre><code class="lang-js"> <span class="hljs-keyword">this</span>.props.action.page.showLoading();
 <span class="hljs-keyword">this</span>.props.action.page.hideLoading();
</code></pre>
</li>
<li><p>props&#x65B9;&#x5F0F;</p>
<pre><code class="lang-js"> <span class="hljs-keyword">const</span> {loading} = <span class="hljs-keyword">this</span>.state;

 <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">PageContent</span> <span class="hljs-attr">loading</span>=<span class="hljs-string">{loading}</span>&gt;</span>
     ...
 <span class="hljs-tag">&lt;/<span class="hljs-name">PageContent</span>&gt;</span></span>
</code></pre>
</li>
</ol>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="MENU.html" class="navigation navigation-prev " aria-label="Previous page: 菜单配置">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="ROUTE.html" class="navigation navigation-next " aria-label="Next page: 系统路由">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"页面开发","level":"1.4","depth":1,"next":{"title":"系统路由","level":"1.5","depth":1,"path":"ROUTE.md","ref":"ROUTE.md","articles":[]},"previous":{"title":"菜单配置","level":"1.3","depth":1,"path":"MENU.md","ref":"MENU.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"PAGE.md","mtime":"2019-02-16T09:08:05.324Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-02-17T03:27:10.809Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

